package com.tyk.bookstore.back.member.repository;


import com.tyk.bookstore.back.common.dal.mapper.IMapper;
import com.tyk.bookstore.back.member.model.dto.Member4CommentDto;
import com.tyk.bookstore.back.member.model.dto.MemberNameDto;
import com.tyk.bookstore.back.member.model.entity.MemberDetailDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;


/**
 * @author tyk
 * @description 会员管理
 */
@Mapper
public interface MemberDetailRepository extends IMapper<MemberDetailDo> {


    /**
     * 查询会员详情列表
     */
    List<MemberDetailDo> selectByMemberIdList(@Param("memberIdList") List<Long> memberIdList);

    /**
     * 查询会员昵称
     */
    List<MemberNameDto> selectNickNameListByMemberIdSet(@Param("memberIdSet") Set<Long> memberIdSet);

    /**
     * 查询会员信息
     */
    List<Member4CommentDto> selectMember4CommentDtoListByIdList(@Param("memberIdList") List<Long> memberIdList,@Param("size") int size);
}
